package ModelLayer;
import java.util.ArrayList;

/**
 * Write a description of class WarehouseContainer here.
 * 
 * @author (Jan Skrubbeltrang) 
 * @version (a version number or a date)
 */
public class WarehouseContainer
{
    // instance variables
    private static WarehouseContainer instance;
    private ArrayList<Warehouse> warehouses;
    /**
     * Constructor for objects of class WarehouseContainer
     */
    private WarehouseContainer()
    {
        // initialise instance variables
        warehouses = new ArrayList<Warehouse>();
    }
    
    public static WarehouseContainer getInstance()
    {
        if(instance == null)
        {
            instance = new WarehouseContainer();
        }
        return instance;
    }
    
    public void addWarehouse(Warehouse warehouse)
    {
        warehouses.add(warehouse);
    }
    
}

	